﻿using MediatR;
using ProductionLine.ErrorCode;

namespace ProductionLine.API.Application.Command.Plan.Write
{
    public class AddPlanCommand:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 计划编号
        /// </summary>
        public string PlanCode { get; set; }
        /// <summary>
        /// 计划名称
        /// </summary>
        public string PlanName { get; set; }
        /// <summary>
        /// 来源类型
        /// </summary>
        public int Resource { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string UnitName { get; set; }
        /// <summary>
        /// 计划数量
        /// </summary>
        public int PlanNum { get; set; }
        /// <summary>
        /// 计划开工时间
        /// </summary>
        public DateTime PlanStart { get; set; }
        /// <summary>
        /// 计划完工时间
        /// </summary>
        public DateTime PlanEnd { get; set; }
        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime RequireDate { get; set; }
        /// <summary>
        /// 计划状态
        /// </summary>
        public int? PlanState { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 产品外键
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? State { get; set; }
        public int? SalesOrderId { get; set; }
    }
}
